import 'package:base_plugin/base_plugin.dart';
import 'package:finance_app/src/common/app_colors.dart';
import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart';

// shadow svg
class NormalFloatSvgButton extends StatelessWidget {
  final String asset;
  final VoidCallback onTap;
  final Color disabledColor;

  const NormalFloatSvgButton(
      {Key key, this.asset, this.onTap, this.disabledColor})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return PressedColorButton(
      onPressed: onTap,
      pressedColor: aceBlueColor.withAlpha(0xF1),
      disabledColor: disabledColor,
      child: SvgPicture.asset(
        asset,
        width: getDp(22),
        height: getDp(22),
      ),
      borderRadius: BorderRadius.circular(getDp(30)),
      color: aceBlueColor,
      boxShadow: [
        BoxShadow(
          color: Colors.black.withOpacity(0.25),
          offset: Offset(0, 4),
          blurRadius: 3,
        )
      ],
      padding: EdgeInsets.symmetric(
        vertical: getDp(11),
        horizontal: getDp(43),
      ),
    );
  }
}
